package com.lht.cozyCloud.bee.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lht.cozyCloud.common.core.annotation.Excel;
import com.lht.cozyCloud.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author lht
 * @version 1.0
 * @description: TODO
 * @date 2025/1/2 11:10
 */

public class MessageRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "主键")
    private String messageId;

    // 信息类型 0:短信  1:邮件
    @Excel(name = "信息类型")
    private Integer type;

    @Excel(name = "信息内容")
    private String content;

    @Excel(name = "发送账号")
    private String account;

    @Excel(name = "模板类型")
    private String templateType;

    @Excel(name = "系统类别")
    private String systemType;

    @Excel(name = "发送对象类型")
    private Integer objectType;

    @Excel(name = "发送类型")
    private Integer sendType;

    @Excel(name = "状态")
    private Integer status;

    // 发送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间")
    private String sendTime;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getTemplateType() {
        return templateType;
    }

    public void setTemplateType(String templateType) {
        this.templateType = templateType;
    }

    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    public Integer getObjectType() {
        return objectType;
    }

    public void setObjectType(Integer objectType) {
        this.objectType = objectType;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("messageId", messageId)
                .append("type", type)
                .append("content", content)
                .append("account", account)
                .append("templateType", templateType)
                .append("systemType", systemType)
                .append("objectType", objectType)
                .append("sendType", sendType)
                .append("status", status)
                .append("sendTime", sendTime)
                .toString();
    }
}
